<%@ page language="java"  pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>电子钱包</title>
<link href="https://my.moneymoremore.com/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="https://my.moneymoremore.com/css/popwin.css" />
<script type="text/javascript" language="javascript" src="https://my.moneymoremore.com/js/PopWin.js"></script>
<script type="text/javascript" src="https://my.moneymoremore.com/js/jquery-1.8.3.js"></script>
<link href="https://my.moneymoremore.com/jquery/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function(){
	var timer1=null;
	var timer2=null;
    $("#indexAd").slideDown(600);
    //$("#adModular").hide();
	//headerDown();
 	function closed(){
		 $("#indexAd").slideUp(300);
		 //headerUp(); 
		 //$('#adModular').show();
	}
    $("#closeAd").click(function(){
    	closed();
    	 clearInterval(timer2);
    	 $(this).attr({"disabled":"disabled"});
	});

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg); //匹配目标参数
        if(r != null) return unescape(r[2]);
        return null; //返回参数值
    }
    var error=getUrlParam('error');
    if(error==1){
        alert("余额不足");
    }
    $.ajax({
        //几个参数需要注意一下
        type: "POST",//方法类型
        dataType: "json",//预期服务器返回的数据类型
        url: "detail.do" ,//url

        success:function (result) {
            //alert(result);
            $("#myaddress").text(result[1]);
            $("#totalbalance").text(result[0]);
            $("#totalbalance2").text(result[0]);
        },
        error : function() {
            alert("异常！");
        }
    });

    setTimeout(closed,30000);
	//setTimeout("$('#adModular').show()",30000);
	//clearInterval(timer1);
	});

</script>
</head>

    <body>
        <div id="account">
        <div class="account_top">
          <div class="account_top001">
            <div class="logo"><h1><strong>电子钱包</strong></h1></div>
            <div class="account_top003">
            您好，
            游客
             &nbsp;&nbsp;&nbsp;&nbsp;<a href="index.jsp">退出 </a></div>
          </div>
          <div class="account_top002">
            <div class="account_top005">
               <ul>
                <li  class="nav_bg"> <a href="detail.jsp">我的帐户</a></li>
                <li  id="managermentid"  style="margin-left:50px;"><a href="transaction.jsp">转账</a></li>
                <li id="managermentid1"><a href="find.jsp">查询记录</a></li>
               </ul>
            </div>
          </div>
        </div>
        </div>
            <div class="account_center">
                <div class="account_centerup">
                    <div class="account_centerup001">
                         <p class="font_007" style="color: black;">
                          游客
                         </p>
                         </br>
                         我的地址:<span id="myaddress"></span>
                        </br>
                         <img src="images/erweima.png" alt="二维码">
                         <div class="account_centerup002">
                             <p>
                               <span class="font_004">帐户余额:</span>
                               <span class="font_005" style="color:#959595;" id="totalbalance">&nbsp;0.00</span>&nbsp;&nbsp;元
                             </p>
                             <p>
                             <span class="font_004">可用余额:</span>
                             <span class="font_006" style="color:#e81f3f;" id="totalbalance2">&nbsp;0.00</span>&nbsp;&nbsp;元
                             </p>
                        </div>
                </div>
            </div>
        </div>
    </body>
</html>